/*
 * InvalidDataException.java
 * Created on 2006-11-29
 *
 * @Description: com.bearingpoint.hr.interfaces.exception
 */
package com.mycompany.app.hr.common;


/**
 * @author kavin.wang
 * @author martin.liu
 * @version: 0.9, 2006-11-1
 *
 * @Description: InvalidDataException
 * 
 * modified by martin, 2006/12/1
 * 1.add one constructor API. 
 * 
 */
public class BaseBusinessException extends BaseAppException {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    public BaseBusinessException() {

        super();
    }

    public BaseBusinessException(String errorCode, String[] errorArgs) {

        this.errorCode = errorCode;
        this.errorArgs = errorArgs;
    }

    public BaseBusinessException(String errorCode, String errorArg) {

        this.errorCode = errorCode;
        this.errorArgs = new String[] { errorArg };
    }

    public BaseBusinessException(String errorCode, String[] errorArgs,
            Throwable cause) {

        super(cause);
        this.errorCode = errorCode;
        this.errorArgs = errorArgs;
    }

    public BaseBusinessException(String errorCode, String errorArg, Throwable cause) {

        super(cause);
        this.errorCode = errorCode;
        this.errorArgs = new String[] { errorArg };
    }

    public BaseBusinessException(String errorMessage) {

        this.errorMessage = errorMessage;
    }
    
    
    /**
     * @author martin.liu
     * @param message
     * @param cause
     */
    public BaseBusinessException(String message, Throwable cause) {
    	super(message, cause);
    }
}